var AUTO;
(function (AUTO) {
    var DateBox = (function () {
        function DateBox(element, mode, options) {
            var info = { "n": { format: 'yyyy', startView: 2 },
                "ny": { format: 'yyyymm', startView: 1 },
                "nyr": { format: 'yyyy-mm-dd', startView: 0 }
            };
            this._$el = $(element);
            this._opt = $.extend({ format: info[mode].format,
                weekStart: 1,
                autoclose: true,
                useCurrent: false,
                startView: info[mode].startView,
                minViewMode: info[mode].startView,
                language: 'zh-CN'
            }, options);
            this._$el.datepicker(this._opt);
        }
        return DateBox;
    }());
    AUTO.DateBox = DateBox;
})(AUTO || (AUTO = {}));
